import strategy_pattern.context.PriceContext;
import strategy_pattern.strategy.UserType;

public class Main {
    public static void main(String[] args) {
//        测试`策略模式
        double price = 100;
        PriceContext context1 = new PriceContext(UserType.NORMAL);
        System.out.println("新用户价格: " + context1.calculate(price));

        PriceContext context2 = new PriceContext(UserType.VIP);
        System.out.println("VIP用户价格: " + context2.calculate(price));

        PriceContext context3 = new PriceContext(UserType.SUPER_VIP);
        System.out.println("超级VIP用户价格: " + context3.calculate(price));
    }
}
